<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">

    <!-- 
            Replace path to template, title, header and body
            with actual data.
    -->
    <ui:composition template="/templates/template.xhtml">
        <ui:define name="pageTitle">Alterar Montadora</ui:define>
        <ui:define name="titleBody">Alterar Montadora</ui:define>
        <ui:define name="body">
            <h:panelGroup styleClass="painel">
                <h:messages/>
                <h:form id="formulario">
                    <table style="margin: auto; text-align: left;" id="estiloTexto">
                            <tr>
                                <td>
                                    <h:outputText value="Nome:" />
                                </td>
                                <td>
                                    <h:inputText id="idNome" value="#{montadoraCtrl.montadora.nome}" style="margin-left: 25px;" maxlength="25" required="true" ></h:inputText>
                                    <h:message for="idNome"/>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <h:outputText value="Cidade:" />
                                </td>
                                <td>
                                    <h:inputText id="idCidade" value="#{montadoraCtrl.montadora.cidade}" style="margin-left: 25px;" maxlength="25" required="true"></h:inputText>
                                    <h:message for="idCidade"/>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <h:commandButton value="Alterar"  actionListener="#{montadoraCtrl.alterarMontadoraNacional()}"></h:commandButton>
                                </td>
                            </tr>
                        </table>
                </h:form>
                <a href="listarMontadora.xhtml" style="margin-left: 25px; margin-top: -35px;"> Listar Montadoras</a>
                <br /><br /><br /><br /><br /><br /><br />
                <br /><br /><br /><br /><br /><br /><br />
                <br /><br /><br /><br /><br /><br /><br />
                <br /><br /><br />
            </h:panelGroup>
        </ui:define>
    </ui:composition>

</html>